package com.cfx.exercise_39;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestSpring {

	
	public static void main(String[] args) {
		
		ClassPathXmlApplicationContext con = new ClassPathXmlApplicationContext("aplication.xml");
		Student stu = (Student)con.getBean("student");
		System.out.println(stu.getName());
		System.out.println(stu);
		People p = (People)con.getBean("people");
		System.out.println(p.getStu().getName());
		System.out.println(p.getSex());
	}
}
